#include"Linked list.h"

int main()
{
	LLNode* plist = NULL;
	LLPushBack(&plist, 1);
	LLPushBack(&plist, 2);
	LLPushBack(&plist, 3);
	LLPushBack(&plist, 4);
	LLPushBack(&plist, 5);

	LLPushFront(&plist, 9);
	LLPushFront(&plist, 8);
	LLPushFront(&plist, 7);
	LLPushFront(&plist, 6);

	LLPrint(plist);

	LLPopBack(&plist);
	LLPopBack(&plist);

	LLPrint(plist);

	LLPopFront(&plist);
	LLPopFront(&plist);

	LLPrint(plist);

	LLNode* find = Find(plist, 9);
	if (find != NULL)
	{
		printf("%d ", find->data);
	}

	LLInsert(&plist, find, 100);
	LLPrint(plist);

	LLDestory(&plist);

	return 0;
}